from django.shortcuts import render

from blogs.models import Blog, Active


def index(request):
    dic = {}
    blogs = Blog.objects.all().order_by('-id')
    dic['blogs'] = blogs
    return render(request,'index.html',dic)